package com.so206.service;

import com.github.pagehelper.PageInfo;
import com.so206.po.SystemUser;
import com.so206.po.SystemVip;
import com.so206.po.ext.SysUserExt;
import com.so206.po.ext.SysUserVipExt;

import java.util.List;

public interface UserService {

    SystemUser findUserByUserNameAndPassword(SystemUser user);

    Long saveUser(SystemUser user) throws Exception;

    PageInfo<SysUserExt> findByPage(Integer page, Integer rows, String user, Long pid, Long role, String email, Long parent_id);

    SystemUser findUserById(Long id);

    void updateUser(SystemUser user);

    void deleteUserById(Long id);

    List<SystemUser> find_user_list();

    SystemUser findUserByEmail(String email);

    List<SystemUser> find_user_list2(Long utype);

    SystemUser find_user_by_email(String email);

    PageInfo<SysUserVipExt> find_by_page(Integer page, Integer rows, Long uid, Integer status, String name, String email);

    SysUserVipExt vip_find_by_id(Long id);

    void delete_vip_by_id(Long id);

    void updaate_vip_by_id(SystemVip vip);

    SystemUser findUserByPhone(String phone);

}
